package com.bartender.ingredient.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.bartender.common.annotation.Excel;
import com.bartender.common.core.domain.BaseEntity;

/**
 * 原料管理对象 ingredient
 * 
 * @author bartender
 * @date 2024-11-22
 */
public class Ingredient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 原料id */
    private Long ingredientId;

    /** 原料 */
    @Excel(name = "原料")
    private String ingredientName;

    /** 类别 */
    @Excel(name = "类别")
    private Integer ingredientCategory;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 成本(元) */
    @Excel(name = "成本(元)")
    private BigDecimal costPrice;

    /** 售价(元) */
    @Excel(name = "售价(元)")
    private BigDecimal sellPrice;

    /** 剩余量 */
    @Excel(name = "剩余量")
    private BigDecimal currentStock;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    /** 颜色 */
    @Excel(name = "颜色")
    private String color;

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setIngredientId(Long ingredientId)
    {
        this.ingredientId = ingredientId;
    }

    public Long getIngredientId() 
    {
        return ingredientId;
    }
    public void setIngredientName(String ingredientName) 
    {
        this.ingredientName = ingredientName;
    }

    public String getIngredientName() 
    {
        return ingredientName;
    }

    public Integer getIngredientCategory() {
        return ingredientCategory;
    }

    public void setIngredientCategory(Integer ingredientCategory) {
        this.ingredientCategory = ingredientCategory;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setCostPrice(BigDecimal costPrice) 
    {
        this.costPrice = costPrice;
    }

    public BigDecimal getCostPrice() 
    {
        return costPrice;
    }
    public void setSellPrice(BigDecimal sellPrice) 
    {
        this.sellPrice = sellPrice;
    }

    public BigDecimal getSellPrice() 
    {
        return sellPrice;
    }
    public void setCurrentStock(BigDecimal currentStock) 
    {
        this.currentStock = currentStock;
    }

    public BigDecimal getCurrentStock() 
    {
        return currentStock;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ingredientId", getIngredientId())
            .append("ingredientName", getIngredientName())
            .append("ingredientCategory", getIngredientCategory())
            .append("unit", getUnit())
            .append("costPrice", getCostPrice())
            .append("sellPrice", getSellPrice())
            .append("currentStock", getCurrentStock())
            .append("deptId", getDeptId())
            .append("color", getColor())
            .toString();
    }
}
